package csel.controller.commandutil;

import csel.model.GameCommand;

public class ParameterizableCommandFactory implements CommandFactory
{
	private final Parameterizable cmd;
	
	public ParameterizableCommandFactory(Parameterizable cmd){
		this.cmd = cmd;
	}
	
	public GameCommand getNewCommand(Parameterizer parameterizer)
	{
		Parameterizable command = cmd.clone();
		command.parameterize(parameterizer.getActionEnum());
		return command;
	}

}
